package foodmaterial.entity;

import foodmaterial.action.valid.ObjectNullValid;

import javax.validation.constraints.DecimalMax;
import javax.validation.constraints.DecimalMin;
import java.io.Serializable;

public class CustomerPriceTemplateDetail implements Serializable {
    private static final long serialVersionUID = 5820839657709671449L;

    private Long id ;
    private Long templateId ;
    @ObjectNullValid(message = "食材不能为空")
    private Long foodMaterialId ;
    private String foodMaterialName ;
    private String specs ;
    private String brand ;
    private String unitName ;
    private Long foodMaterialTypeId ;
    private String foodMaterialTypeName;
    private Boolean originalProcess ;
    @ObjectNullValid(message = "价格不能为空")
    @DecimalMin(value = "0.01",message = "销售价最低为0.01")
    @DecimalMax(value = "200",message = "销售价最高为200")
    private Double salePrice ;
    private Double vipSalePrice ;//主要是维护价格的时候显示
    private Integer pageNo ;
    private Integer pageSize ;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getTemplateId() {
        return templateId;
    }

    public void setTemplateId(Long templateId) {
        this.templateId = templateId;
    }

    public Long getFoodMaterialId() {
        return foodMaterialId;
    }

    public void setFoodMaterialId(Long foodMaterialId) {
        this.foodMaterialId = foodMaterialId;
    }

    public String getFoodMaterialName() {
        return foodMaterialName;
    }

    public void setFoodMaterialName(String foodMaterialName) {
        this.foodMaterialName = foodMaterialName;
    }

    public String getSpecs() {
        return specs;
    }

    public void setSpecs(String specs) {
        this.specs = specs;
    }

    public String getBrand() {
        return brand;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }

    public String getUnitName() {
        return unitName;
    }

    public void setUnitName(String unitName) {
        this.unitName = unitName;
    }

    public Long getFoodMaterialTypeId() {
        return foodMaterialTypeId;
    }

    public void setFoodMaterialTypeId(Long foodMaterialTypeId) {
        this.foodMaterialTypeId = foodMaterialTypeId;
    }

    public String getFoodMaterialTypeName() {
        return foodMaterialTypeName;
    }

    public void setFoodMaterialTypeName(String foodMaterialTypeName) {
        this.foodMaterialTypeName = foodMaterialTypeName;
    }

    public Boolean getOriginalProcess() {
        return originalProcess;
    }

    public void setOriginalProcess(Boolean originalProcess) {
        this.originalProcess = originalProcess;
    }

    public Double getSalePrice() {
        return salePrice;
    }

    public void setSalePrice(Double salePrice) {
        this.salePrice = salePrice;
    }

    public Double getVipSalePrice() {
        return vipSalePrice;
    }

    public void setVipSalePrice(Double vipSalePrice) {
        this.vipSalePrice = vipSalePrice;
    }

    public Integer getPageNo() {
        return pageNo;
    }

    public void setPageNo(Integer pageNo) {
        this.pageNo = pageNo;
    }

    public Integer getPageSize() {
        return pageSize;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
    }
}
